import request from "@/utils/request";

// 根据员工id查机构
// export function queryCoreByuserId(id) {
//   return request({
//     url: '/pd-auth/core_org/queryCoreByuserId/' +id,
//     method: 'get',
//     data: { id: id } // 携带具名的userid参数
//   })
// }


export function  Query(id) {
  return request({
    url: `/pd-auth/core_org/Query/${ id }`,
    method: 'GET',
    params:{ id }
  })
}


export function  QueryCount() {
  return request({
    url: '/pd-base/agencyScope/QueryCount/',
    method: 'post',
  })
}


export function  QueryCountCore() {
  return request({
    url: '/pd-auth/core_org/QueryCountCore/',
    method: 'post',
  })
}


export function  GetExpressItemByOrderId_to(orderId) {
  return request({
    url: '/pd-work/EDOM/GetExpressItemByOrderId_to/'+orderId,
    method: 'GET',
    params:{orderId:orderId}
  })
}
